import { InjectionKey } from 'vue'
import { CheckboxGroupProps } from './checkboxGroup'

export type CheckboxModelValue = string | number
export type CheckboxGroupModelValue = CheckboxModelValue[]

/**
 * checkboxGroupContext
 */
export type CheckboxGroupContext = CheckboxGroupProps & {
  activeName: CheckboxGroupModelValue,

  changeEvent: (val: CheckboxModelValue) => void
}

export const checkboxGroupKey: InjectionKey<CheckboxGroupContext> = Symbol('checkboxGroupKey')
